package com.hschinese.pronunciation.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.hschinese.pronunciation.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class EntryConstructionActivity extends BaseActivity {


    @Bind(R.id.center_img_china)
    ImageView centerImgChina;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_entry_construction);
        ButterKnife.bind(this);
        initViews();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    private void initViews() {
        centerImgChina.setImageResource(R.mipmap.title_jiegou);

    }

    @OnClick({R.id.left_img, R.id.iv_construction_list_zy, R.id.iv_construction_list_zzy, R.id.iv_construction_list_sx, R.id.iv_construction_list_szx,
            R.id.iv_construction_list_zsx, R.id.iv_construction_list_sxy, R.id.iv_construction_list_sxzy, R.id.iv_construction_list_szy,
            R.id.iv_construction_list_zyx,R.id.iv_construction_list_bw1, R.id.iv_construction_list_bw2, R.id.iv_construction_list_bw3, R.id.iv_construction_list_bw4, R.id.iv_construction_list_bw5, R.id.iv_construction_list_bw6, R.id.iv_construction_list_bw7})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.left_img:
                this.finish();
                break;
            case R.id.iv_construction_list_zy:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 0));
                break;
            case R.id.iv_construction_list_zzy:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 1));
                break;
            case R.id.iv_construction_list_sx:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 2));
                break;
            case R.id.iv_construction_list_szx:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 3));
                break;
            case R.id.iv_construction_list_zsx:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 4));
                break;
            case R.id.iv_construction_list_sxy:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 5));
                break;
            case R.id.iv_construction_list_sxzy:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 6));
                break;
            case R.id.iv_construction_list_szy:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 7));
                break;
            case R.id.iv_construction_list_zyx:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 8));
                break;
            case R.id.iv_construction_list_bw1:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 9));
                break;
            case R.id.iv_construction_list_bw2:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 10));
                break;
            case R.id.iv_construction_list_bw3:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 11));
                break;
            case R.id.iv_construction_list_bw4:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 12));
                break;
            case R.id.iv_construction_list_bw5:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 13));
                break;
            case R.id.iv_construction_list_bw6:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 14));
                break;
            case R.id.iv_construction_list_bw7:
                startActivity(new Intent(this, StudyConstructionActivity.class).putExtra("lesson", 13).putExtra("weith", 15));
                break;
        }
    }


}
